
function my_test(reg){
    return function(str){
        return reg.test(str);
    }
}

const testName = my_test(/^[a-zA-Z_]\w{5,15}$/);
const testPass = my_test(/^\w{6,30}$/);
const testNick = my_test(/^[a-z0-9A-Z_\u4e00-\u9fa5]{2,20}$/);


// alert(testNick('大个66666'))

export default {testName:testName,testPass:testPass,testNick:testNick}